import tooltip from './directives/tooltip';

const install = function(Vue) {
    if (install.installed) return;
    Vue.directive('tooltip', tooltip);
};

// auto install
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

const API = {
    version: process.env.VERSION, // eslint-disable-line no-undef
    install,
};

module.exports.default = module.exports = API;   // eslint-disable-line no-undef
